package com.dingli.shop;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableEurekaClient //在服务启动后自动注册到Eureka中
@EnableDiscoveryClient
@EnableSwagger2
@ComponentScan(basePackages = {"com.dingli"})
public class Provider_8001 {
    public static void main(String[] args){
        SpringApplication.run(Provider_8001.class, args);
    }
}
